<template>
  <el-button class="Btn" :type="type" :disabled="disable||loading" :loading="loading" v-bind="$attrs" v-on="$listeners">{{ label }}</el-button>
</template>

<script>
export default {
  name: 'Btn',
  props: {
    label: {
      type: String,
      default: ''
    },
    type: {
      type: String,
      default: ''
    },
    disable: {
      type: Boolean,
      default: false
    },
    loading: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<style lang="scss" scoped>
.Btn{
  min-width:100px;
  border-radius:2px;
  font-size:14px;
  padding: 10px 20px;
}
.el-button--text{
  min-width: 20px;
  padding: 0;
}
</style>

